<?php

/* 	Travel Theme's Header
 Copyright: 2013, D5 Creation, www.d5creation.com
 Based on the Simplest D5 Framework for WordPress
 Since travel 1.0
 */

?>

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width" />
<title><?php wp_title() ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<!--[if lt IE 9]>
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->

<?php

wp_head(); ?>
<script
	src="<?php echo get_template_directory_uri(); ?>/js/bootstrap.min.js"
	type="text/javascript"></script>
<link rel="stylesheet" type="text/css"
	href="<?php echo get_template_directory_uri(); ?>/css/bootstrap.min.css">
<!--<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js" type="text/javascript"></script>-->
<link rel="stylesheet" type="text/css"
	href="<?php echo get_template_directory_uri(); ?>/css/template.css" />
<!--<link rel="stylesheet" type="text/css" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/css/template.css"/> -->

</head>

<body <?php body_class(); ?>>


	<div id="top-menu-container">
	<?php if ( ! dynamic_sidebar( 'topmenubar-sidebar' ) ) : ?>

		<aside id="archives" class="widget">
			<h3 class="widget-title">Archives</h3>
			<ul>
			<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
			</ul>
		</aside>

		<aside id="meta" class="widget">
			<h3 class="widget-title">Meta</h3>
			<ul>
			<?php wp_register(); ?>
				<li><?php wp_loginout(); ?></li>
				<?php wp_meta(); ?>
			</ul>
		</aside>

		<?php endif; // end sidebar widget area ?>
		<?php get_search_form(); ?>
		<div id="social">
		<?php  if (of_get_option('gplus-link', '#') !='') : ?>
			<a href="<?php echo esc_url(of_get_option('gplus-link', '#')); ?>"
				class="facebook-link" target="_blank"></a>
			<a href="<?php echo esc_url(of_get_option('gplus-link', '#')); ?>"
				class="twitter-link" target="_blank"></a>
				<?php  endif; if (of_get_option('con-link', '#') !='') : ?>
			<a href="<?php echo esc_url(of_get_option('gplus-link', '#')); ?>"
				class="gplus-link" target="_blank"></a>
				<?php  endif; if (of_get_option('con-link', '#') !='') : ?>
				<?php  endif; if (of_get_option('con-link', '#') !='') : ?>
			<a href="<?php echo esc_url(of_get_option('con-link', '#')); ?>"
				class="con-link" target="_blank"></a>
				<?php  endif; ?>
		</div>
	</div>
	<div class="clear"></div>
	<div id="header">
		<div id="header-content">

			<!-- Site Titele and Description Goes Here -->
		<?php if (get_header_image() !='' ): ?>
			<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img
				class="site-logo" src="<?php header_image(); ?>" /> </a>
				<?php ; else : ?>
			<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><h1
					class="site-title">
					<?php bloginfo( 'name' ); ?>
				</h1> </a>
				<?php ; endif; ?>

			<h2 class="site-title-hidden">
			<?php bloginfo( 'description' ); ?>
			</h2>

			<!-- Site Main Menu Goes Here -->
			<nav id="travel-main-menu">
			<?php if ( has_nav_menu( 'main-menu' ) ) :  wp_nav_menu( array( 'theme_location' => 'main-menu' )); else: wp_page_menu(); endif; ?>
			</nav>

		</div>
		<!-- header-content -->
	</div>
	<!-- header -->